<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线OJ-题目列表</title>
    <link rel="stylesheet" href="/css/all_questions.css">
</head>

<body>
    <div class="container">
        <div class="navbar">
            <a href="/">首页</a>
            <a href="/all_questions">题库</a>
            <a href="/ranking.html">排行榜</a>
            <a class="homepage" href="/user.html" id="navUserId">我的主页</a>
            <a class="login" href="/login.html">登陆</a>
            <a class="logout" href="javascript:void(0)" onclick="logout()">登出</a>
        </div>
        <div class="question_list">
            <h1>📚 Online Judge</h1>
            <table>
                <tr>
                    <th class="item">编号</th>
                    <th class="item">标题</th>
                    <th class="item">难度</th>
                </tr>
                {{#question_list}}
                <tr>
                    <td class="item">{{number}}</td>
                    <td class="item"><a href="/question/{{number}}">{{title}}</a></td>
                    <td class="item">{{star}}</td>
                </tr>
                {{/question_list}}
            </table>
        </div>
        <div class="footer">
            <!-- <hr> -->
            <h4>@wnf</h4>
        </div>
    </div>
    <script src="/js/auth.js"></script>
</body>

</html>